<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- qtdesigner-module.qdoc -->
  <title>C++ 类 | Qt Designer 手册</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td ><a href="../qtdoc/index.html">Qt 5.14</a></td><td ><a href="qtdesigner-manual.html">Qt Designer 手册</a></td><td >C++ 类</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtdesigner-manual.html">Qt 5.14.2 参考文档</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">目录</a></h3>
<ul>
<li class="level1"><a href="#classes">类</a></li>
<li class="level1"><a href="#details">详细说明</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Qt Designer C++ 类</h1>
<span class="subtitle"></span>
<!-- $$$QtDesigner-brief -->
<p>提供了用于为 Qt Designer 创建自己的自定义小部件插件的类和用于访问 Qt Designer 组件的类 。<a href="#details">More...</a></p>
<!-- @@@QtDesigner -->
<a name="classes"></a>
<h2 id="classes">类</h2>
<div class="table"><table class="annotated">
<tr class="odd topAlign"><td class="tblName"><p><a href="qabstractextensionfactory.html">QAbstractExtensionFactory</a></p></td><td class="tblDescr"><p>Qt Designer 中的扩展工厂接口</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qabstractextensionmanager.html">QAbstractExtensionManager</a></p></td><td class="tblDescr"><p>Qt Designer 中的扩展管理器接口</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qabstractformbuilder.html">QAbstractFormBuilder</a></p></td><td class="tblDescr"><p>在运行时创建用户界面的类的默认实现</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qdesigneractioneditorinterface.html">QDesignerActionEditorInterface</a></p></td><td class="tblDescr"><p>允许您更改 Qt Designer 的动作编辑器的焦点</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qdesignercontainerextension.html">QDesignerContainerExtension</a></p></td><td class="tblDescr"><p>允许您在 Qt Designer 的工作区中向自定义多页面容器添加页面</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qdesignercustomwidgetcollectioninterface.html">QDesignerCustomWidgetCollectionInterface</a></p></td><td class="tblDescr"><p>允许在一个库中包含多个自定义小部件</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qdesignercustomwidgetinterface.html">QDesignerCustomWidgetInterface</a></p></td><td class="tblDescr"><p>使 Qt Designer 能够访问和构造自定义小部件</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qdesignerdynamicpropertysheetextension.html">QDesignerDynamicPropertySheetExtension</a></p></td><td class="tblDescr"><p>允许您在 Qt Designer 的属性编辑器中操作小部件的动态属性</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qdesignerformeditorinterface.html">QDesignerFormEditorInterface</a></p></td><td class="tblDescr"><p>允许您访问 Qt Designer 的各种组件</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qdesignerformwindowcursorinterface.html">QDesignerFormWindowCursorInterface</a></p></td><td class="tblDescr"><p>允许您查询和修改窗体窗口的小部件选择，以及修改所有窗体小部件的属性</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qdesignerformwindowinterface.html">QDesignerFormWindowInterface</a></p></td><td class="tblDescr"><p>允许您查询和操作 Qt Designer 工作空间中出现的窗体窗口</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qdesignerformwindowmanagerinterface.html">QDesignerFormWindowManagerInterface</a></p></td><td class="tblDescr"><p>允许您在 Qt Designer 中操作窗体窗口集合，并控制 Qt Designer 的窗体编辑操作</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qdesignermembersheetextension.html">QDesignerMemberSheetExtension</a></p></td><td class="tblDescr"><p>在使用 Qt Designer 的模式编辑信号和槽配置连接时，允许您操作显示的小部件的成员函数</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qdesignerobjectinspectorinterface.html">QDesignerObjectInspectorInterface</a></p></td><td class="tblDescr"><p>允许您更改 Qt Designer 的对象检查器的焦点</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qdesignerpropertyeditorinterface.html">QDesignerPropertyEditorInterface</a></p></td><td class="tblDescr"><p>允许您查询和操作 Qt Designer 的属性编辑器的当前状态</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qdesignerpropertysheetextension.html">QDesignerPropertySheetExtension</a></p></td><td class="tblDescr"><p>允许您操作在 Qt Designer 的属性编辑器中显示的小部件的属性</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qdesignertaskmenuextension.html">QDesignerTaskMenuExtension</a></p></td><td class="tblDescr"><p>允许您向 Qt Designer 的任务菜单中添加自定义菜单项</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qdesignerwidgetboxinterface.html">QDesignerWidgetBoxInterface</a></p></td><td class="tblDescr"><p>允许您控制 Qt Designer 的小部件框的内容</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qextensionfactory.html">QExtensionFactory</a></p></td><td class="tblDescr"><p>允许您创建能够在 Qt Designer 中创建自定义扩展实例的工厂</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qextensionmanager.html">QExtensionManager</a></p></td><td class="tblDescr"><p>Qt Designer 的扩展管理设施</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qformbuilder.html">QFormBuilder</a></p></td><td class="tblDescr"><p>用于在运行时从UI文件动态构造用户界面</p></td></tr>
</table></div>
<!-- $$$QtDesigner-description -->
<a name="details"></a>
<div class="descr">
<h2 id="details">详细说明</h2>
<p>另外， <a href="qformbuilder.html">QFormBuilder</a> 类提供了在运行时从UI文件构造用户界面的可能 。</p>
<p>要包含模块类的定义，请使用以下指令:</p>
<pre class="cpp">

  <span class="preprocessor">#include &lt;QtDesigner&gt;</span>

</pre>
<p>要链接到模块，请在 <code>qmake</code>  .pro文件中添加这一行:</p>
<pre class="cpp">

  CONFIG += designer

</pre>
</div>
<!-- @@@QtDesigner -->
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2020 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>
